import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
//import VueNativeSock from 'vue-native-websocket';
Vue.config.productionTip = false


import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';

import axios from 'axios'
import VueAxios from 'vue-axios'

Vue.use(VueAxios, axios)
Vue.use(ElementUI);

axios.defaults.withCredentials=true;

axios.defaults.baseURL='http://127.0.0.1:10001/';

// // 添加请求拦截器
// axios.interceptors.request.use(function (config) {
//   // 在发送请求之前做些什么
//   config = localStorage.getItem("token");
//   return config;
// }, function (error) {
//   // 对请求错误做些什么
//   return Promise.reject(error);
// });



new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
